package com.bestcem.xm.member.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.member.constant.CollectionConstant;
import com.bestcem.xm.member.entity.mysql.ImportRecordMsgEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 导入记录 实体类
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/20
 */

@Getter
@Setter
@TableName(CollectionConstant.IMPORT_RECORD_MSG)
public class ImportRecordMsgDO {

    private String id;

    private String importRecordId;

    private Integer line;

    private String message;

    private Date createTime;

    private Date updateTime;

    public static ImportRecordMsgDO toDo(ImportRecordMsgEntity entity) {
        ImportRecordMsgDO importRecordMsgDo = new ImportRecordMsgDO();
        importRecordMsgDo.setCreateTime(entity.getCreateTime());
        importRecordMsgDo.setId(entity.getId());
        importRecordMsgDo.setImportRecordId(entity.getImportId());
        importRecordMsgDo.setLine(entity.getLine());
        importRecordMsgDo.setMessage(entity.getMessage());
        importRecordMsgDo.setUpdateTime(entity.getUpdateTime());
        return importRecordMsgDo;
    }
}
